package com.gsq.zjcgj;

import android.content.Context;

import com.gy.mbaselibrary.App;
import com.gy.mbaselibrary.db.DatabaseHelper;
import com.gy.mbaselibrary.utils.StringUtil;

import java.util.ArrayList;
import java.util.List;


public class ProjectApp extends App {

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
    }


    @Override
    public void onCreate() {
        super.onCreate();


        setDebug(false);
        new Thread(){
            @Override
            public void run() {
                super.run();
                List<Class> dbclasses = new ArrayList<>();
                List<Class> upclasses = new ArrayList<>();
                DatabaseHelper.init("zjcgj",6,dbclasses,upclasses);
            }
        }.start();

    }



    public void exit(){
        super.exit();
    }

    public int getPercentHeight(float p){
        return (int)((float)getsHeight() * p / 100f);
    }

    public int getPercentWidth(float p){
        return (int)((float)getsWidth() * p / 100);
    }

}
